Skip to content

feat: add sds allowedNamespaces in EnvoyProxy - #8917

Closed
zirain wants to merge 1 commit into
envoyproxy:mainfrom
zirain:sds-namespaces
Closed

feat: add sds allowedNamespaces in EnvoyProxy#8917
zirain wants to merge 1 commit into
envoyproxy:mainfrom
zirain:sds-namespaces

Conversation

@zirain

@zirain zirain commented May 6, 2026

Copy link
Copy Markdown
Member

Follow up #8745

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
zirain requested a review from a team as a code owner May 6, 2026 03:04
@netlify

netlify Bot commented May 6, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 50774dd
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69faafa7950c4900088c8d4c
😎 Deploy Preview https://deploy-preview-8917--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50774dd2bd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +463 to +464
if !selector.Matches(labels.Set(secretNs.Labels)) {
return fmt.Errorf("SDS Secret reference is not allowed in namespace: %s", secretNs.Name)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve namespace labels before matching SDS selectors

When sdsConfig.allowedNamespaces is used with the file provider or egctl translate, this match sees empty labels because the shared YAML loader constructs Namespace resources with only ObjectMeta.Name (internal/gatewayapi/resource/load.go:278-286, reached from internal/provider/file/resources.go:54). A manifest that includes Namespace labels and an SDS Secret in that namespace will therefore be rejected even though the selector should match; the loader needs to preserve Namespace metadata before this selector check can work outside the Kubernetes provider.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.71%. Comparing base (53b9963) to head (50774dd).
⚠️ Report is 101 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/backendtlspolicy.go 90.32% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8917      +/-   ##
==========================================
+ Coverage   74.67%   74.71%   +0.03%     
==========================================
  Files         251      251              
  Lines       40398    40511     +113     
==========================================
+ Hits        30169    30266      +97     
- Misses       8157     8169      +12     
- Partials     2072     2076       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zirain zirain changed the title add sds allowedNamespaces in EnvoyProxy feat: add sds allowedNamespaces in EnvoyProxy May 6, 2026
@zirain zirain added this to the v1.8.0 Release milestone May 7, 2026
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Jun 7, 2026
@github-actions github-actions Bot closed this Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants